import React from "react";
import ReactDOM from "react-dom";
import { HashRouter as Router } from "react-router-dom";
import promise from "es6-promise";
import "./index.scss";
import App from "./App";
import { mock } from "@src/mock/mock";

promise.polyfill();
mock();

// 这里可以先做永久存储，先发送请求判断是否过期，直接进行localStorage层面的token修改

ReactDOM.render(
	<Router>
		<App />
	</Router>,
	document.getElementById("root")
);
